home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-10-28 | 2.6 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 75 6e 20 4a |ggum.no |on Sun J|
|00000030| 61 6e 20 31 34 20 30 36 | 3a 30 33 3a 35 36 20 31 |an 14 06|:03:56 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 67 64 2f 67 6e | 75 2f 65 6d 61 63 73 2f |e /gd/gn|u/emacs/|
|00000060| 31 39 2e 30 2f 6c 69 73 | 70 2f 6b 65 72 6d 69 74 |19.0/lis|p/kermit|
|00000070| 2e 65 6c 0a 3b 3b 3b 20 | 65 6d 61 63 73 20 76 65 |.el.;;; |emacs ve|
|00000080| 72 73 69 6f 6e 20 31 39 | 2e 33 30 2e 37 30 2e 36 |rsion 19|.30.70.6|
|00000090| 2e 0a 3b 3b 3b 20 62 79 | 74 65 63 6f 6d 70 20 76 |..;;; by|tecomp v|
|000000a0| 65 72 73 69 6f 6e 20 46 | 53 46 20 32 2e 31 30 0a |ersion F|SF 2.10.|
|000000b0| 3b 3b 3b 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e |;;; opti|mization|
|000000c0| 20 69 73 20 6f 6e 2e 0a | 3b 3b 3b 20 74 68 69 73 | is on..|;;; this|
|000000d0| 20 66 69 6c 65 20 75 73 | 65 73 20 6f 70 63 6f 64 | file us|es opcod|
|000000e0| 65 73 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |es which| do not |
|000000f0| 65 78 69 73 74 20 69 6e | 20 45 6d 61 63 73 20 31 |exist in| Emacs 1|
|00000100| 38 2e 0a 0a 28 69 66 20 | 28 61 6e 64 20 28 62 6f |8...(if |(and (bo|
|00000110| 75 6e 64 70 20 27 65 6d | 61 63 73 2d 76 65 72 73 |undp 'em|acs-vers|
|00000120| 69 6f 6e 29 0a 09 20 28 | 6f 72 20 28 61 6e 64 20 |ion).. (|or (and |
|00000130| 28 62 6f 75 6e 64 70 20 | 27 65 70 6f 63 68 3a 3a |(boundp |'epoch::|
|00000140| 76 65 72 73 69 6f 6e 29 | 20 65 70 6f 63 68 3a 3a |version)| epoch::|
|00000150| 76 65 72 73 69 6f 6e 29 | 0a 09 20 20 20 20 20 28 |version)|.. (|
|00000160| 73 74 72 69 6e 67 2d 6c | 65 73 73 70 20 65 6d 61 |string-l|essp ema|
|00000170| 63 73 2d 76 65 72 73 69 | 6f 6e 20 22 31 39 2e 32 |cs-versi|on "19.2|
|00000180| 39 22 29 29 29 0a 20 20 | 20 20 28 65 72 72 6f 72 |9"))). | (error|
|00000190| 20 22 60 6b 65 72 6d 69 | 74 2e 65 6c 27 20 77 61 | "`kermi|t.el' wa|
|000001a0| 73 20 63 6f 6d 70 69 6c | 65 64 20 66 6f 72 20 45 |s compil|ed for E|
|000001b0| 6d 61 63 73 20 31 39 2e | 32 39 20 6f 72 20 6c 61 |macs 19.|29 or la|
|000001c0| 74 65 72 22 29 29 0a 0a | 0a 28 72 65 71 75 69 72 |ter"))..|.(requir|
|000001d0| 65 20 28 71 75 6f 74 65 | 20 73 68 65 6c 6c 29 29 |e (quote| shell))|
|000001e0| 0a 23 40 32 33 20 2a 4b | 65 72 6d 69 74 27 73 20 |.#@23 *K|ermit's |
|000001f0| 65 73 63 61 70 65 20 63 | 68 61 72 1f 0a 28 64 65 |escape c|har..(de|
|00000200| 66 76 61 72 20 6b 65 72 | 6d 69 74 2d 65 73 63 2d |fvar ker|mit-esc-|
|00000210| 63 68 61 72 20 22 1c 22 | 20 28 23 24 20 2e 20 2d |char "."| (#$ . -|
|00000220| 34 38 36 29 29 0a 23 40 | 36 35 20 46 6f 72 20 73 |486)).#@|65 For s|
|00000230| 65 6e 64 69 6e 67 20 65 | 73 63 61 70 65 20 73 65 |ending e|scape se|
|00000240| 71 75 65 6e 63 65 73 20 | 74 6f 20 61 20 6b 65 72 |quences |to a ker|
|00000250| 6d 69 74 20 72 75 6e 6e | 69 6e 67 20 69 6e 20 73 |mit runn|ing in s|
|00000260| 68 65 6c 6c 20 6d 6f 64 | 65 2e 1f 0a 28 64 65 66 |hell mod|e...(def|
|00000270| 61 6c 69 61 73 20 27 6b | 65 72 6d 69 74 2d 65 73 |alias 'k|ermit-es|
|00000280| 63 20 23 5b 6e 69 6c 20 | 22 c0 c1 70 21 5c 6e c3 |c #[nil |"..p!\n.|
|00000290| c4 20 21 50 5c 22 87 22 | 20 5b 70 72 6f 63 65 73 |. !P\"."| [proces|
|000002a0| 73 2d 73 65 6e 64 2d 73 | 74 72 69 6e 67 20 67 65 |s-send-s|tring ge|
|000002b0| 74 2d 62 75 66 66 65 72 | 2d 70 72 6f 63 65 73 73 |t-buffer|-process|
|000002c0| 20 6b 65 72 6d 69 74 2d | 65 73 63 2d 63 68 61 72 | kermit-|esc-char|
|000002d0| 20 63 68 61 72 2d 74 6f | 2d 73 74 72 69 6e 67 20 | char-to|-string |
|000002e0| 72 65 61 64 2d 63 68 61 | 72 5d 20 35 20 28 23 24 |read-cha|r] 5 (#$|
|000002f0| 20 2e 20 35 35 35 29 20 | 6e 69 6c 5d 29 0a 23 40 | . 555) |nil]).#@|
|00000300| 35 37 20 53 65 6e 64 20 | 61 6e 20 61 72 62 69 74 |57 Send |an arbit|
|00000310| 72 61 72 79 20 63 68 61 | 72 61 63 74 65 72 20 74 |rary cha|racter t|
|00000320| 6f 20 61 20 70 72 6f 67 | 72 61 6d 20 69 6e 20 73 |o a prog|ram in s|
|00000330| 68 65 6c 6c 20 6d 6f 64 | 65 2e 1f 0a 28 64 65 66 |hell mod|e...(def|
|00000340| 61 6c 69 61 73 20 27 6b | 65 72 6d 69 74 2d 73 65 |alias 'k|ermit-se|
|00000350| 6e 64 2d 63 68 61 72 20 | 23 5b 6e 69 6c 20 22 c0 |nd-char |#[nil ".|
|00000360| c1 70 21 c2 c3 20 21 5c | 22 87 22 20 5b 70 72 6f |.p!.. !\|"." [pro|
|00000370| 63 65 73 73 2d 73 65 6e | 64 2d 73 74 72 69 6e 67 |cess-sen|d-string|
|00000380| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 70 72 6f 63 | get-buf|fer-proc|
|00000390| 65 73 73 20 63 68 61 72 | 2d 74 6f 2d 73 74 72 69 |ess char|-to-stri|
|000003a0| 6e 67 20 72 65 61 64 2d | 63 68 61 72 5d 20 34 20 |ng read-|char] 4 |
|000003b0| 28 23 24 20 2e 20 37 37 | 31 29 20 6e 69 6c 5d 29 |(#$ . 77|1) nil])|
|000003c0| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 09 c2 |.(byte-c|ode "...|
|000003d0| c3 23 88 c0 09 c4 c5 23 | 88 c0 09 c6 c3 23 87 22 |.#.....#|.....#."|
|000003e0| 20 5b 64 65 66 69 6e 65 | 2d 6b 65 79 20 73 68 65 | [define|-key she|
|000003f0| 6c 6c 2d 6d 6f 64 65 2d | 6d 61 70 20 22 1c 22 20 |ll-mode-|map "." |
|00000400| 6b 65 72 6d 69 74 2d 65 | 73 63 20 22 03 11 22 20 |kermit-e|sc ".." |
|00000410| 6b 65 72 6d 69 74 2d 73 | 65 6e 64 2d 63 68 61 72 |kermit-s|end-char|
|00000420| 20 22 03 5c 5c 22 5d 20 | 34 29 0a 23 40 36 36 20 | ".\\"] |4).#@66 |
|00000430| 4c 69 6b 65 20 5c 5b 63 | 6f 6d 69 6e 74 2d 73 65 |Like \[c|omint-se|
|00000440| 6e 64 2d 69 6e 70 75 74 | 5d 20 62 75 74 20 65 6e |nd-input|] but en|
|00000450| 64 20 74 68 65 20 6c 69 | 6e 65 20 77 69 74 68 20 |d the li|ne with |
|00000460| 63 61 72 72 69 61 67 65 | 2d 72 65 74 75 72 6e 2e |carriage|-return.|
|00000470| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 6b 65 72 |..(defal|ias 'ker|
|00000480| 6d 69 74 2d 73 65 6e 64 | 2d 69 6e 70 75 74 2d 63 |mit-send|-input-c|
|00000490| 72 20 23 5b 6e 69 6c 20 | 22 c0 20 88 c1 c2 70 21 |r #[nil |". ...p!|
|000004a0| c3 5c 22 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 73 65 |.\"." [c|omint-se|
|000004b0| 6e 64 2d 69 6e 70 75 74 | 20 63 6f 6d 69 6e 74 2d |nd-input| comint-|
|000004c0| 73 65 6e 64 2d 73 74 72 | 69 6e 67 20 67 65 74 2d |send-str|ing get-|
|000004d0| 62 75 66 66 65 72 2d 70 | 72 6f 63 65 73 73 20 22 |buffer-p|rocess "|
|000004e0| 0d 22 5d 20 33 20 28 23 | 24 20 2e 20 31 30 37 32 |."] 3 (#|$ . 1072|
|000004f0| 29 20 6e 69 6c 5d 29 0a | 28 64 65 66 69 6e 65 2d |) nil]).|(define-|
|00000500| 6b 65 79 20 73 68 65 6c | 6c 2d 6d 6f 64 65 2d 6d |key shel|l-mode-m|
|00000510| 61 70 20 22 5c 6e 22 20 | 28 71 75 6f 74 65 20 6b |ap "\n" |(quote k|
|00000520| 65 72 6d 69 74 2d 73 65 | 6e 64 2d 69 6e 70 75 74 |ermit-se|nd-input|
|00000530| 2d 63 72 29 29 0a 23 40 | 31 38 30 20 4d 61 6b 65 |-cr)).#@|180 Make|
|00000540| 20 52 45 54 55 52 4e 20 | 65 6e 64 20 74 68 65 20 | RETURN |end the |
|00000550| 6c 69 6e 65 20 77 69 74 | 68 20 63 61 72 72 69 61 |line wit|h carria|
|00000560| 67 65 2d 72 65 74 75 72 | 6e 20 61 6e 64 20 4c 46 |ge-retur|n and LF|
|00000570| 44 20 65 6e 64 20 69 74 | 20 77 69 74 68 20 61 20 |D end it| with a |
|00000580| 6e 65 77 6c 69 6e 65 2e | 0a 54 68 69 73 20 69 73 |newline.|.This is|
|00000590| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 74 61 6c 6b | useful |for talk|
|000005a0| 69 6e 67 20 74 6f 20 6f | 74 68 65 72 20 73 79 73 |ing to o|ther sys|
|000005b0| 74 65 6d 73 20 6f 6e 20 | 77 68 69 63 68 20 63 61 |tems on |which ca|
|000005c0| 72 72 69 61 67 65 2d 72 | 65 74 75 72 6e 0a 69 73 |rriage-r|eturn.is|
|000005d0| 20 74 68 65 20 6e 6f 72 | 6d 61 6c 20 77 61 79 20 | the nor|mal way |
|000005e0| 74 6f 20 65 6e 64 20 61 | 20 6c 69 6e 65 2e 1f 0a |to end a| line...|
|000005f0| 28 64 65 66 61 6c 69 61 | 73 20 27 6b 65 72 6d 69 |(defalia|s 'kermi|
|00000600| 74 2d 64 65 66 61 75 6c | 74 2d 63 72 20 23 5b 6e |t-defaul|t-cr #[n|
|00000610| 69 6c 20 22 c0 09 c2 c3 | 23 88 c0 09 c4 c5 23 87 |il "....|#.....#.|
|00000620| 22 20 5b 64 65 66 69 6e | 65 2d 6b 65 79 20 73 68 |" [defin|e-key sh|
|00000630| 65 6c 6c 2d 6d 6f 64 65 | 2d 6d 61 70 20 22 0d 22 |ell-mode|-map "."|
|00000640| 20 6b 65 72 6d 69 74 2d | 73 65 6e 64 2d 69 6e 70 | kermit-|send-inp|
|00000650| 75 74 2d 63 72 20 22 5c | 6e 22 20 63 6f 6d 69 6e |ut-cr "\|n" comin|
|00000660| 74 2d 73 65 6e 64 2d 69 | 6e 70 75 74 5d 20 34 20 |t-send-i|nput] 4 |
|00000670| 28 23 24 20 2e 20 31 33 | 34 30 29 20 6e 69 6c 5d |(#$ . 13|40) nil]|
|00000680| 29 0a 23 40 31 34 38 20 | 4d 61 6b 65 20 52 45 54 |).#@148 |Make RET|
|00000690| 55 52 4e 20 65 6e 64 20 | 74 68 65 20 6c 69 6e 65 |URN end |the line|
|000006a0| 20 77 69 74 68 20 61 20 | 6e 65 77 6c 69 6e 65 20 | with a |newline |
|000006b0| 63 68 61 72 2e 20 20 54 | 68 69 73 20 69 73 20 74 |char. T|his is t|
|000006c0| 68 65 20 64 65 66 61 75 | 6c 74 20 73 74 61 74 65 |he defau|lt state|
|000006d0| 2e 0a 49 6e 20 74 68 69 | 73 20 73 74 61 74 65 2c |..In thi|s state,|
|000006e0| 20 75 73 65 20 4c 46 44 | 20 74 6f 20 73 65 6e 64 | use LFD| to send|
|000006f0| 20 61 20 6c 69 6e 65 20 | 61 6e 64 20 65 6e 64 20 | a line |and end |
|00000700| 69 74 20 77 69 74 68 20 | 61 20 63 61 72 72 69 61 |it with |a carria|
|00000710| 67 65 2d 72 65 74 75 72 | 6e 2e 1f 0a 28 64 65 66 |ge-retur|n...(def|
|00000720| 61 6c 69 61 73 20 27 6b | 65 72 6d 69 74 2d 64 65 |alias 'k|ermit-de|
|00000730| 66 61 75 6c 74 2d 6e 6c | 20 23 5b 6e 69 6c 20 22 |fault-nl| #[nil "|
|00000740| c0 09 c2 c3 23 88 c0 09 | c4 c5 23 87 22 20 5b 64 |....#...|..#." [d|
|00000750| 65 66 69 6e 65 2d 6b 65 | 79 20 73 68 65 6c 6c 2d |efine-ke|y shell-|
|00000760| 6d 6f 64 65 2d 6d 61 70 | 20 22 5c 6e 22 20 6b 65 |mode-map| "\n" ke|
|00000770| 72 6d 69 74 2d 73 65 6e | 64 2d 69 6e 70 75 74 2d |rmit-sen|d-input-|
|00000780| 63 72 20 22 0d 22 20 63 | 6f 6d 69 6e 74 2d 73 65 |cr "." c|omint-se|
|00000790| 6e 64 2d 69 6e 70 75 74 | 5d 20 34 20 28 23 24 20 |nd-input|] 4 (#$ |
|000007a0| 2e 20 31 36 37 32 29 20 | 6e 69 6c 5d 29 0a 23 40 |. 1672) |nil]).#@|
|000007b0| 34 39 20 53 74 72 69 70 | 20 5e 4d 20 61 6e 64 20 |49 Strip| ^M and |
|000007c0| 5e 40 20 63 68 61 72 61 | 63 74 65 72 73 20 66 72 |^@ chara|cters fr|
|000007d0| 6f 6d 20 70 72 6f 63 65 | 73 73 20 6f 75 74 70 75 |om proce|ss outpu|
|000007e0| 74 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 6b |t...(def|alias 'k|
|000007f0| 65 72 6d 69 74 2d 63 6c | 65 61 6e 2d 66 69 6c 74 |ermit-cl|ean-filt|
|00000800| 65 72 20 23 5b 28 70 72 | 6f 63 20 73 74 72 29 20 |er #[(pr|oc str) |
|00000810| 22 8a c0 09 21 1a c3 09 | 21 71 88 5c 6e 62 88 c4 |"...!...|!q.\nb..|
|00000820| 0d 21 88 c6 c7 5c 6e c8 | 23 85 20 00 c9 ca 21 88 |.!...\n.|#. ...!.|
|00000830| 82 11 00 2a 87 22 20 5b | 70 72 6f 63 65 73 73 2d |...*." [|process-|
|00000840| 6d 61 72 6b 20 70 72 6f | 63 20 62 65 67 20 70 72 |mark pro|c beg pr|
|00000850| 6f 63 65 73 73 2d 62 75 | 66 66 65 72 20 69 6e 73 |ocess-bu|ffer ins|
|00000860| 65 72 74 2d 62 65 66 6f | 72 65 2d 6d 61 72 6b 65 |ert-befo|re-marke|
|00000870| 72 73 20 73 74 72 20 72 | 65 2d 73 65 61 72 63 68 |rs str r|e-search|
|00000880| 2d 62 61 63 6b 77 61 72 | 64 20 22 5b 0d 01 5d 2b |-backwar|d "[..]+|
|00000890| 22 20 74 20 72 65 70 6c | 61 63 65 2d 6d 61 74 63 |" t repl|ace-matc|
|000008a0| 68 20 22 22 5d 20 34 20 | 28 23 24 20 2e 20 31 39 |h ""] 4 |(#$ . 19|
|000008b0| 37 31 29 5d 29 0a 23 40 | 31 35 38 20 44 65 6c 65 |71)]).#@|158 Dele|
|000008c0| 74 65 20 61 6c 6c 20 6e | 75 6c 6c 20 63 68 61 72 |te all n|ull char|
|000008d0| 61 63 74 65 72 73 20 61 | 6e 64 20 5e 4d 27 73 20 |acters a|nd ^M's |
|000008e0| 66 72 6f 6d 20 74 68 65 | 20 6b 65 72 6d 69 74 20 |from the| kermit |
|000008f0| 6f 75 74 70 75 74 2e 0a | 4e 6f 74 65 20 74 68 61 |output..|Note tha|
|00000900| 74 20 61 6e 6f 74 68 65 | 72 20 28 70 65 72 68 61 |t anothe|r (perha|
|00000910| 70 73 20 62 65 74 74 65 | 72 29 20 77 61 79 20 74 |ps bette|r) way t|
|00000920| 6f 20 64 6f 20 74 68 69 | 73 20 69 73 20 74 6f 20 |o do thi|s is to |
|00000930| 75 73 65 20 74 68 65 0a | 63 6f 6d 6d 61 6e 64 20 |use the.|command |
|00000940| 60 6b 65 72 6d 69 74 20 | 7c 20 74 72 20 2d 64 20 |`kermit || tr -d |
|00000950| 27 5c 30 31 35 27 27 2e | 1f 0a 28 64 65 66 61 6c |'\015''.|..(defal|
|00000960| 69 61 73 20 27 6b 65 72 | 6d 69 74 2d 63 6c 65 61 |ias 'ker|mit-clea|
|00000970| 6e 2d 6f 6e 20 23 5b 6e | 69 6c 20 22 c0 c1 70 21 |n-on #[n|il "..p!|
|00000980| c2 5c 22 87 22 20 5b 73 | 65 74 2d 70 72 6f 63 65 |.\"." [s|et-proce|
|00000990| 73 73 2d 66 69 6c 74 65 | 72 20 67 65 74 2d 62 75 |ss-filte|r get-bu|
|000009a0| 66 66 65 72 2d 70 72 6f | 63 65 73 73 20 6b 65 72 |ffer-pro|cess ker|
|000009b0| 6d 69 74 2d 63 6c 65 61 | 6e 2d 66 69 6c 74 65 72 |mit-clea|n-filter|
|000009c0| 5d 20 33 20 28 23 24 20 | 2e 20 32 32 33 36 29 20 |] 3 (#$ |. 2236) |
|000009d0| 6e 69 6c 5d 29 0a 23 40 | 35 30 20 43 61 6e 63 65 |nil]).#@|50 Cance|
|000009e0| 6c 20 61 20 70 72 65 76 | 69 6f 75 73 20 6b 65 72 |l a prev|ious ker|
|000009f0| 6d 69 74 2d 63 6c 65 61 | 6e 2d 73 68 65 6c 6c 2d |mit-clea|n-shell-|
|00000a00| 6f 6e 20 63 6f 6d 6d 61 | 6e 64 2e 1f 0a 28 64 65 |on comma|nd...(de|
|00000a10| 66 61 6c 69 61 73 20 27 | 6b 65 72 6d 69 74 2d 63 |falias '|kermit-c|
|00000a20| 6c 65 61 6e 2d 6f 66 66 | 20 23 5b 6e 69 6c 20 22 |lean-off| #[nil "|
|00000a30| c0 c1 70 21 c2 5c 22 87 | 22 20 5b 73 65 74 2d 70 |..p!.\".|" [set-p|
|00000a40| 72 6f 63 65 73 73 2d 66 | 69 6c 74 65 72 20 67 65 |rocess-f|ilter ge|
|00000a50| 74 2d 62 75 66 66 65 72 | 2d 70 72 6f 63 65 73 73 |t-buffer|-process|
|00000a60| 20 6e 69 6c 5d 20 33 20 | 28 23 24 20 2e 20 32 35 | nil] 3 |(#$ . 25|
|00000a70| 32 33 29 20 6e 69 6c 5d | 29 0a |23) nil]|). |
+--------+-------------------------+-------------------------+--------+--------+